package edu.gmu;

import java.util.LinkedList;
import java.util.List;
import edu.gmu.parser.Token;

/**
 * Value is the userObject for a TreeNode and holds various
 * pieces of information from the syntax parse tree, specifically
 * the tokens.
 * User: james
 * Date: 3/9/11
 * Time: 3:59 PM
 * To change this template use File | Settings | File Templates.
 */
public class Value
{
    private Token token = null;

    /**
     * Creates a new Value with default values.
     * @param token
     */
    public Value( Token token )
    {
         this.token = token;
    }

    /**
     * Returns token
     * @return token
     */
    public Token getToken( )
    {
        return this.token;
    }

    public String toString()
    {
        return (this.token==null)? "null":this.token.toString();
    }
}
